-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Import component types from planx-core
#2756
Conversation
347f8ad
to
fd64c10
Compare
Removed vultr server and associated DNS entries |
1ebc5c4
to
233ff62
Compare
planx-core
nit I'm not sure if it's part of the scope of this feature although would we want to update the historical records for the I think this might also require updates to the analytics cards if they're using either of these currently. I don't think they are at the moment but I'd need to double check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks good to me 👍
It feels much better removing the duplicate file and pointing at the single source of truth.
I ran through a guidance and a submission service on the pizza and everything worked as expected for me.
The only non-blocking implication of this change which I'm not sure if handled yet is the update of Analytics Data which has historical records where I think we might want to update the node types to be consistent with this change as per my comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
I don't want to jump the gun but another place node_type
is stored as a string is in the metadata
when there are back
or change
events tracked as per: #2654
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Thanks for the link to the PR also, super helpful. I've now added migrations to cover this also.
Just as an insurance policy I'd be really grateful if you were able to test these migrations locally juuuust to make sure nothing is amiss. I've tested locally and getting the expected results 👍
bfec3be
to
56dcac3
Compare
WHEN node_type 'Question' THEN 'Statement' | ||
WHEN node_type 'Answer' THEN 'Response' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WHEN node_type 'Question' THEN 'Statement' | |
WHEN node_type 'Answer' THEN 'Response' | |
WHEN node_type = 'Question' THEN 'Statement' | |
WHEN node_type = 'Answer' THEN 'Response' |
I was seeing an error with the down migration but I think it was just the =
being missing on these lines. I found it surprisingly hard to spot the difference 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good catch, this was me being clumsy using ⌘ + D
I think! Fixed here 8b230c9
8b230c9
to
9c6192e
Compare
9c6192e
to
10745d2
Compare
What does this PR do?
editor.planx.uk/src/@planx/components/types.ts
, replaces with imports fromplan-core
TYPES.Statement
→TYPES.Question
TYPES.Response
→TYPES.Answer